//
//  EuropeCollectionViewCell.m
//  BeanTrip
//
//  Created by dlios on 15-7-1.
//  Copyright (c) 2015年 PandaGroup. All rights reserved.
//

#import "EuropeCollectionViewCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation EuropeCollectionViewCell
- (void)dealloc
{
    [_myEuropeImageView release];
    [_myEuropeLabel release];
    [super dealloc];
}
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //对imageView和label进行创建
        //1.在item里设置图片的位置
        self.myEuropeImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH,HEIGHT)];
        [self.contentView addSubview:self.myEuropeImageView];
        
        self.myEuropeImageView.layer.masksToBounds = YES;
        self.myEuropeImageView.layer.cornerRadius = 8.0;
        self.myEuropeImageView.layer.borderWidth = 1.0;
        self.myEuropeImageView.layer.borderColor = [[UIColor whiteColor] CGColor];
        
        [_myEuropeImageView release];
        //2.在item里设置文字的位置
        self.myEuropeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10,HEIGHT-30, WIDTH, 30)];
        self.myEuropeLabel.numberOfLines = 0;
        //3.设置文字的颜色
        self.myEuropeLabel.textColor=[UIColor whiteColor];
        //self.myLabel.font = [UIFont systemFontOfSize:17];//采用系统默认文字设置大小
        //4.设置文字类型与大小
        self.myEuropeLabel.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:17];
        [self.contentView addSubview:self.myEuropeLabel];
        [_myEuropeLabel release];
        
        
    }
    return self;
}

@end
